package Controller;


import Model.Shebeilog;
import Service.ShebeilogService;

import utils.ReturnData;
import utils.ReturnDataForLayui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 分类控制层
 */
@Controller
@RequestMapping("/shebeilog")
public class ShebeilogController{

    @Autowired
    private ShebeilogService shebeilogService;

    @RequestMapping("/listPage")
    public String listPage(){
        return "SmartCheck/shebeilog/list";
    }




    @RequestMapping("/getList")
    @ResponseBody
    public ReturnDataForLayui getList(Shebeilog shebeilog){
        return shebeilogService.getList(shebeilog);
    }



    @RequestMapping("/addPage")
    public String addPage(){
        return "SmartCheck/shebeilog/add";
    }

    @RequestMapping("/add")
    @ResponseBody
    public ReturnData add(Shebeilog shebeilog){
        return shebeilogService.add(shebeilog);
    }

    @RequestMapping("/editPage")
    public String editPage(){
        return "SmartCheck/shebeilog/edit";
    }

    @RequestMapping("/update")
    @ResponseBody
    public ReturnData update(Shebeilog shebeilog){
        return shebeilogService.update(shebeilog);
    }



    @RequestMapping("/delete")
    @ResponseBody
    public ReturnData delete(Shebeilog shebeilog){
        return shebeilogService.delete(shebeilog);
    }




}